﻿using System.IO;
using HttpApiGateway.FileUp.Model;
using HttpApiGateway.Interface;
using HttpService;

namespace HttpApiGateway.FileUp.Interface
{
    internal interface IBlockUpTask: IBlockTask,System.IDisposable
    {
        string TaskId { get; }

        string TaskKey { get; }
        int TimeOut { get; }
        string ServerName { get; }
        BlockUpSate GetUpState();
        void Load(IApiService service);
        void WriteUpFile(IUpFile file, int index);
        bool CheckBlockIndex(int blockIndex);
        Stream GetStream(int index);
    }
}